<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" +request.getServerPort() + path + "/";
%>
<jsp:include page="head.jsp"></jsp:include>
<!-- 如果直接登陆该页面，则页面转向到控制器 -->
<c:if test="${map2==null}">
<c:redirect url="../CommodityClassify_Servlet?manage=showadd"></c:redirect>
</c:if>
	<div class="main">
		<h2>添加分类</h2>
		<div class="manage">
			<form action="<%=basePath %>AddChangeDeleteClassify_Servlet" method="POST">
				<table class="form">
				  <input type="hidden" value="add" name="manage" />
					<tr>
						<td class="field">父分类：</td>
						<td>
							<select name="cpid">

 <c:if test="${map2!=null}">
   <c:if test="${map2.ClassifyList!=null }">
     <c:forEach items="${map2.ClassifyList}" var="obj">  
              <option value="${obj.big_id}"><c:out value="----${obj.big_name}----"></c:out> </option>	
  </c:forEach>
   </c:if>
</c:if>
							</select>
						</td>
					</tr>
					<tr>
						<td class="field">分类名称：</td>
						<td><input type="text" class="text" name="cname" /></td>
					</tr>
					<tr>
						<td></td>
						<td><label class="ui-blue"><input type="submit" value="增加" /></label></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
<jsp:include page="foot.jsp"></jsp:include>